'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.wrapEventEmitter = exports.generateEventEmitter = undefined;

var _EventEmitter = require('./EventEmitter');

var _EventEmitter2 = _interopRequireDefault(_EventEmitter);

var _eventNs = require('./eventNs');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var generateEventEmitter = exports.generateEventEmitter = function generateEventEmitter() {
    var event = new _EventEmitter2.default();
    return wrapEventEmitter(event);
};
var wrapEventEmitter = exports.wrapEventEmitter = function wrapEventEmitter(event, opt) {
    (0, _eventNs.addEventNs)(event, opt);
    (0, _eventNs.addOnOneEvent)(event);
    return event;
};

exports.default = generateEventEmitter;